package com.woniu.command.equipmentCommand;

import com.sun.org.apache.xpath.internal.operations.Bool;
import com.woniu.command.Command;
import com.woniu.command.handle.EquipmentCommandHandle;
import com.woniu.outlet.po.EquipmentStop;
import com.woniu.util.ApplicationContextHolder;
import org.springframework.beans.factory.annotation.Autowired;

public class UpdateEquipmentStopCommand implements Command<EquipmentStop,Boolean> {

    @Autowired
    private EquipmentCommandHandle handler;

    public UpdateEquipmentStopCommand(){
        this.handler = ApplicationContextHolder.getApplicationContext().getBean(EquipmentCommandHandle.class);
    }
    @Override
    public Boolean excute(EquipmentStop equipmentStop) {
        return this.handler.updateEquipmentStop(equipmentStop);
    }
}
